package git.bds.nyc.admin.service.audit.gx.authentication;

import git.bds.nyc.admin.model.vo.AuditFarmerAuthenticationInfoVO;
import git.bds.nyc.admin.model.vo.AuditFarmerAuthenticationVO;
import git.bds.nyc.page.PageParam;
import git.bds.nyc.page.PageResult;

/**
 * @author 成大事
 * @since 2023/6/9 14:49
 */
public interface AuditFarmerAuthenticationService {
    /**
     * 按类型获取农民页面
     *
     * @param pageParam 页面参数
     * @param type      类型
     * @return {@link PageResult}<{@link AuditFarmerAuthenticationVO}>
     */
    PageResult<AuditFarmerAuthenticationVO> getFarmerPageByType(PageParam pageParam, int type);

    /**
     * 通过id获取农民身份验证信息
     *
     * @param id 身份证
     * @return {@link AuditFarmerAuthenticationInfoVO}
     */
    AuditFarmerAuthenticationInfoVO getFarmerAuthenticationInfoById(Long id);

    /**
     * 用id审计农民身份验证
     *
     * @param id     身份证
     * @param status 地位
     * @return {@link Boolean}
     */
    Boolean auditFarmerAuthenticationById(Long id, int status);
}
